import { applyMiddleware, createStore } from "redux";
import rootReducer from "./reducer";
// 1 下包 导入
import thunk from "redux-thunk";

import logger from "redux-logger";

// 2. 配置中间redux-thunk
const store = createStore(rootReducer, applyMiddleware(logger, thunk));

export default store;
